home *** CD-ROM | disk | FTP | other *** search
/ HaCKeRz Kr0nlcKLeZ 1 / HaCKeRz Kr0nlcKLeZ.iso / scriptz / glow11.exe / txt / randold.txt < prev    next >
Encoding:
Text File  |  1997-01-05  |  1.9 KB  |  35 lines

  1. /rand  /set -q %wavfile $read c:\mirc\abc\random.txt | /set -q %fname c:\mirc\abc\ $+ %wavfile | /set -q %wavlen $lof(%fname) | /sound # %wavfile  plays a random wav... <  %wavfile of %wavlen bytes >
  2. /srand /timer98 0 600 /run c:\command.com /c dir c:\mirc\abc\*.wav /b > c:\mirc\abc\random.txt | /timer99 0 $$?="Enter delay for random play:" /rand
  3. /erand /timer98 off | /timer99 off
  4.  
  5. There is a directory specified 4 times (and the drive another 2 times) in the lines above.  If your directory for wavs is different, change it in all 4 (or 6) places in these lines.  Then save.
  6. Paste the whole thing above - in one chunk into tools, alias - then click ok:
  7.  
  8. "/rand" is the alias that selects a random file, gets the length and plays it. - to play a random wav whenever you want.
  9. "/srand" starts the random play.  It will ask for a delay (in seconds) between files - turns on the auto-random playing.
  10. "/erand" ends the random play.
  11.  
  12. What It Does:
  13. "/rand" gets a random filename from the file "random.txt", finds the length of the file
  14. and plays it (along with a little message).  This is the workhorse.
  15.  
  16. The random player will update itself periodically, so don't let that little window popping up now & them surprise you.  It's a good thing.
  17.  
  18. This plays only to the channel on which you activate it.
  19. "/srand" updates your file list every 10 minutes.  If you want to maintain the
  20. file list yourself (don't want to give them all away?  no probs :] ) just
  21. change "/srand" to:
  22.  
  23. /srand /timer99 0 $$?="Enter delay for random play:" /rand
  24.  
  25.  
  26. That's about it :)
  27.  
  28. Electric Monk
  29. Chan-Op: #WAV/sound_help on DALnet
  30.  
  31. To activate, after pasting above line:  copy this into where you type to chat & hit enter: then do the commands above to run/stop it.  The directories in this line must match your directory for wavs also.
  32.  
  33. /run c:\command.com /c dir c:\mirc\abc\*.wav /b > c:\mirc\abc\random.txt
  34.  
  35.